Region Code Constants
These constants specify a combination of a language code and a particular region. Some of these numeric values are reserved just for extra resource IDs associated with certain regions; these are not actual region codes, and are noted in the comments. Not all of the region codes are currently supported by Apple software.
ATSUI uses region code information to direct line breaking and cursor movement functions like ATSUBreakLine, ATSUNextCursorPosition, ATSUPreviousCursorPosition, ATSURightwardCursorPosition, and ATSULeftwardCursorPosition. You can use region code constants to set the style run and text layout attributes identified by the tag constants kATSULanguageTag and kATSULineLanguageTag. For more information, see Style Run Attribute Tag Constants and Text Layout Attribute Tag Constants, respectively.
Note that in the comments for the following enumeration, many of the region codes have an associated P/N, ISO code, and comments. P/N stands for the Apple part number code for software localized for the specified region; the ISO code is made up of the two-letter ISO language and country codes from ISO 639 and ISO 3166. The ISO code is described by the lowercase language code, followed by "_", then the uppercase country code.
enum { /* P/N ISO codes comments*/
verUS = 0, /* en_US*
verFrance = 1, /* F fr_FR*/
verBritain = 2, /* B en_GB*/
verGermany = 3, /* D de_DE*/
verItaly = 4, /* T it_IT*/
verNetherlands = 5, /* N nl_NL*/
verFlemish = 6, /* FN nl_BE Flemish (Dutch) for
Belgium*/
verSweden = 7, /* S sv_SE*/
verSpain = 8, /* E es_ES Spanish for Spain*/
verDenmark = 9, /* DK da_DK*/
verPortugal = 10, /* PO pt_PT Portuguese for Portugal*/
verFrCanada = 11, /* C fr_CA French for Canada*/
verNorway = 12, /* H no_NO Bokmål*
verIsrael = 13, /* HB iw_IL Hebrew*/
verJapan = 14, /* J ja_JP*/
verAustralia = 15, /* X en_AU English for Australia*/
verArabic = 16, /* AB ar Arabic for N Africa,
Arabian peninsula,
Levant*/
verFinland = 17, /* K fi_FI*/
verFrSwiss = 18, /* SF fr_CH French Swiss*/
verGrSwiss = 19, /* SD de_CH German Swiss*/
verGreece = 20, /* GR el_GR Monotonic Greek(modern)*/
verIceland = 21, /* IS is_IS*/
verMalta = 22, /* MA mt_MT*/
verCyprus = 23, /* CY _CY Greek or Turkish lang?*/
verTurkey = 24, /* TU tr_TR*/
verYugoCroatian = 25 /* YU Croatian for Yugoslavia;
now use verCroatia (68)*/
verNetherlandsComma = 26, /* ID for KCHR resource -
Dutch*/
verBelgiumLuxPoint = 27, /* ID for KCHR resource -
Belgium*/
verCanadaComma = 28, /* ID for KCHR resource -
Canadian ISO*/
verCanadaPoint = 29, /* ID for KCHR resource -
Canadian, now unused*/
vervariantPortugal = 30, /* ID for resource; now
unused*/
vervariantNorway = 31, /* ID for resource; now
unused*/
vervariantDenmark = 32 /* ID for KCHR resource -
Danish Mac Plus*/
verIndiaHindi = 33, /* hi_IN Hindi for India*/
verPakistanUrdu = 34, /* UR ur_PK Urdu for Pakistan */
verTurkishModified = 35,
verItalianSwiss = 36, /* ST it_CH Italian Swiss*/
verInternational = 37, /* Z en English for international
use */
/* 38 is unassigned*/
verRomania = 39, /* RO ro_RO*/
verGreecePoly = 40, /* Polytonic Greek
(classical) */
verLithuania = 41, /* LT lt_LT*/
verPoland = 42, /* PL pl_PL*/
verHungary = 43, /* MG hu_HU*/
verEstonia = 44, /* EE et_EE*/
verLatvia = 45, /* LV lv_LV*/
verSami = 46, /* se */
verFaroeIsl = 47, /* FA fo_FO */
verIran = 48, /* PS fa_IR Persian/Farsi*/
verRussia = 49, /* RSr u_RU Russian*/
verIreland = 50, /* GA ga_IE Irish Gaelic for Ireland
(without dot above)*/
verKorea = 51, /* KH ko_KR*/
verChina = 52, /* CH zh_CN Simplified Chinese*/
verTaiwan = 53, /* TA zh_TW Traditional Chinese*/
verThailand = 54, /* TH th_TH*/
verScriptGeneric = 55, /* SS Generic script system (no
language or script)*/
verCzech = 56, /* CZ cs_CZ*/
verSlovak = 57, /* SL sk_SK*/
verFarEastGeneric = 58, /* FE Generic Far East system
(no language or script)*/
verMagyar = 59, /* Unused; see verHungary*/
verBengali = 60, /* bn Bangladesh or India*/
verByeloRussian = 61 /* BY be_BY*/
verUkraine = 62, /* UA uk_UA*/
/* 63 is unassigned*/
verGreeceAlt = 64, /* unused */
verSerbian = 65, /* SR sr_YU, sh_YU */
verSlovenian = 66, /* SV sl_SI */
verMacedonian = 67, /* MD mk_MK */
verCroatia = 68, /* CR hr_HR, sh_HR*/
/* 69 is unassigned*/
/* 70 is unassigned*/
verBrazil = 71, /* BR pt_BR Portuguese for Brazil*/
verBulgaria = 72, /* BG bg_BG*/
verCatalonia = 73, /* CA ca_ES Catalan for Spain*/
verMultilingual = 74, /* ZM (no language or script)*/
verScottishGaelic = 75, /* GD gd*/
verManxGaelic = 76, /* GV gv Isle of Man*/
verBreton = 77, /* BZ br*/
verNunavut = 78, /* IU iu_CA Inuktitut for Canada*/
verWelsh = 79, /* CU cy*/
/* 80 is ID for KCHR resource - Canadian
CSA*/
verIrishGaelicScript= 81, /* GS ga_IE Irish Gaelic for Ireland
(using dot above)*/
verEngCanada = 82, /* V en_CA English for Canada*/
verBhutan = 83, /* BH dz_BT Dzongkha for Bhutan*/
verArmenian = 84, /* HY hy_AM*/
verGeorgian = 85, /* KR ka_GE*/
verSpLatinAmerica = 86, /* LA es Spanish for Latin
America*/
/* 87 is ID for KCHR
resource - Spanish ISO*/
verTonga = 88, /* TS to_TO*/
/* 89 is ID for KCHR
resource - Polish
Modified*/
/* 90 is ID for KCHR
resource - Catalan ISO*/
verFrenchUniversal = 91, /* fr French generic*/
verAustria = 92, /* AU de_AT German for Austria*/
/* Y 93 is unused alternate
for verSpLatinAmerica*/
verGujarati = 94, /* gu_IN*/
verPunjabi = 95, /* pa Pakistan or India*/
verIndiaUrdu = 96, /* ur_IN Urdu for India*/
verVietnam = 97 /* vi_VN*/}
verFrBelgium = 98, /* BF fr_BE French for Belgium */
verUzbek = 99, /* BD uz_UZ */
verSingapore = 100, /* SG */
verNynorsk = 101, /* NY _NO Norwegian Nynorsk */
verAfrikaans = 102, /* AK af_ZA */
verEsperanto = 103, /* eo */
verMarathi = 104, /* mr_IN */
verTibetan = 105, /* bo */
verNepal = 106, /* ne_NP */
verGreenland = 107 /* kl */
};
Constant descriptions
-
verUS
-
Identifies English spoken in the United States.
-
verFrance
-
Identifies French spoken in France.
-
verBritain
-
Identifies English spoken in Britain.
-
verGermany
-
Identifies German spoken in Germany.
-
verItaly
-
Identifies Italian spoken in Italy.
-
verNetherlands
-
Identifies Dutch spoken in the Netherlands.
-
verFlemish
-
Identifies Flemish (Dutch) spoken in Belgium.
-
verSweden
-
Identifies Swedish spoken in Sweden.
-
verSpain
-
Identifies Spanish spoken in Spain.
-
verDenmark
-
Identifies Danish spoken in Denmark.
-
verPortugal
-
Identifies Portugal Portuguese.
-
verFrCanada
-
Identifies French spoken in Canada.
-
verNorway
-
Identifies Bokmal.
-
verIsrael
-
Identifies Hebrew.
-
verJapan
-
Identifies Japanese.
-
verAustralia
-
Identifies English spoken in Australia.
-
verArabic
-
Identifies Arabic spoken in North Africa, Arabian peninsula, and Levant.
-
verFinland
-
Identifies Finnish spoken in Finland.
-
verFrSwiss
-
Identifies French Swiss.
-
verGrSwiss
-
Identifies German Swiss.
-
verGreece
-
Identifies monotonic (that is, modern) Greek.
-
verIceland
-
Identifies Icelandic.
-
verMalta
-
Identifies Maltese.
-
verCyprus
-
Identifies Greek or Turkish spoken in Cyprus.
-
verTurkey
-
Identifies Turkish spoken in Turkey.
-
verYugoCroatian
-
Identifies Croatian spoken in Yugoslavia. No longer used. You should instead use VerCroatia.
-
verNetherlandsComma
-
Identifies the Dutch 'KCHR' resource.
-
verBelgiumLuxPoint
-
Identifies the Belgium 'KCHR' resource.
-
verCanadaComma
-
Identifies the Canadian ISO 'KCHR' resource.
-
verCanadaPoint
-
Identifies the Canadian 'KCHR' resource. No longer used.
-
vervariantPortugal
-
Identifies the Portuguese 'KCHR' resource. No longer used.
-
vervariantNorway
-
Identifies the Norwegian 'KCHR' resource. No longer used.
-
vervariantDenmark
-
Identifies the Danish Mac Plus 'KCHR' resource.
-
verIndiaHindi
-
Identifies Hindi spoken in India.
-
verPakistanUrdu
-
Identifies Urdu spoken in Pakistan.
-
verTurkishModified
-
Identifies Turkish.
-
verItalianSwiss
-
Identifies Italian Swiss.
-
verInternational
-
Identifies English for international use.
-
verRomania
-
Identifies Romanian.
-
verGreecePoly
-
Identifies polytonic (that is, classical) Greek.
-
verLithuania
-
Identifies Lithuanian.
-
verPoland
-
Identifies Polish.
-
verHungary
-
Identifies Hungarian.
-
verEstonia
-
Identifies Estonian.
-
verLatvia
-
Identifies Latvian.
-
verSami
-
Identifies Saamisk.
-
verFaroeIsl
-
Identifies the north Germanic language spoken on Faeroe Island.
-
verIran
-
Identifies Persian (that is, Farsi).
-
verRussia
-
Identifies Russian.
-
verIreland
-
Identifies Irish Gaelic spoken in Ireland (that is, without a dot above).
-
verKorea
-
Identifies Korean.
-
verChina
-
Identifies simplified Chinese.
-
verTaiwan
-
Identifies traditional Chinese.
-
verThailand
-
Identifies Thai.
-
verScriptGeneric
-
Identifies the generic script system (that is, no language or script).
-
verCzech
-
Identifies Czech.
-
verSlovak
-
Identifies Slovak.
-
verFarEastGeneric
-
Identifies generic script system for far east system.
-
verMagyar
-
Unused. See verHungary.
-
verBengali
-
Identifies Bengali spoken in Bangladesh or India.
-
verByeloRussian
-
Identifies Russian.
-
verUkraine
-
Identifies Ukrainian.
-
verGreeceAlt
-
Identifies Greek alternative. Not used.
-
verSerbian
-
Identifies Serbian.
-
verSlovenian
-
Identifies Slovenian.
-
verMacedonian
-
Identifies Macedonian.
-
verCroatia
-
Identifies Croatian.
-
verBrazil
-
Identifies Brazilian Portuguese.
-
verBulgaria
-
Identifies Bulgarian.
-
verCatalonia
-
Identifies Catalan spoken in Spain.
-
verMultilingual
-
Identifies no language or script.
-
verScottishGaelic
-
Identifies Scottish Gaelic.
-
verManxGaelic
-
Identifies Gaelic spoken in the Isle of Man.
-
verBreton
-
Identifies Breton.
-
verNunavut
-
Identifies Nunavut spoken by the Inuktitut in Canada.
-
verWelsh
-
Identifies Welsh.
-
verIrishGaelicScript
-
Identifies Irish Gaelic for Ireland (with the dot above).
-
verEngCanada
-
Identifies English spoken in Canada.
-
verBhutan
-
Identifies Dzongkha spoken in Bhutan.
-
verArmenian
-
Identifies Armenian.
-
verGeorgian
-
Identifies Georgia spoken in Georgia, Russia.
-
verSpLatinAmerica
-
Identifies Spanish spoken in Latin America.
-
verFrenchUniversal
-
Identifies generic French.
-
verAustria
-
Identifies German spoken in Austria.
-
verGujarati
-
Identifies Gujarti.
-
verPunjabi
-
Identifies Punjabi spoken in Pakistan and India.
-
verIndiaUrdu
-
Identifies Urdu spoken in India.
-
verVietnam
-
Identifies Vietnamese.
-
verFrBelgium
-
Identifies French spoken in Belgium.
-
verUzbek
-
Identifies Uzbek.
-
verSingapore
-
Identifies Chinese spoken in Singapore.
-
verNynorsk
-
Identifies Norwegian Nynorsk.
-
verAfrikaans
-
Identifies Afrikaans.
-
verEsperanto
-
Identifies Esperanto.
-
verMarathi
-
Identifies Marathi.
-
verTibetan
-
Identifies Tibetan.
-
verNepal
-
Identifies Nepalese.
-
verGreenland
-
Identifies Greenlandic.
© 2000 Apple Computer, Inc. – (Last Updated 25 Jan 00)